﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace IronBrokers.ClientManager.Model
{
    [DataContract]
    public class Response
    {
        #region Public properties
        [DataMember]
        public bool Success { get; set; }
        [DataMember]
        public String ErrorMessage { get; set; } 
        #endregion

        #region Constructors
        public Response()
        {
            Success = true;
            ErrorMessage = null;
        }

        public Response(Exception exception)
        {
            Success = false;
            ErrorMessage = exception.Message;
        } 
        #endregion
    }
}